<script setup>
import { inject } from 'vue';

const count = inject('count');
const setCount = inject('setCount');
</script>

<template>
  <div>这是Child</div>
  <div>{{ count }} <button @click="setCount(10)">setCount</button></div>
</template>
